Setup on Client Machine to connect Using Sun’s JVM Point to Point
Note: IBM WebSphere MQ V 6.1 Clients SupportPacs requires installation. This is a free download from IBM.
Open file JMSAdmin.config with a text editor. It is located at (WebSphere MQ install)\Java\bin\JMSAdmin.config.
Ensure the following:
INITIAL_CONTEXT_FACTORY line is uncommented
Its value is com.sun.jndi.fscontext.RefFSContextFactory
Perform the following steps:
Uncomment the PROVIDER_URL line
Ensure the value of the PROVIDER_URLPROVIDER_URL line points to a designated folder on your local file system
Note: You need to use UNIX style path separators “/”, even on Windows boxes.
Execute JMSAdmin.bat. A prompt will appear similar to <InitCtx>.
Note:JMSAdmin.bat is located in the same folder as JMSAdmin.config.
Enter the properties for the Queue Connection Factory connection.
Note: Provide all parenthetical information ( ).
def qcf(NDI name of Queue Connection Factory) hostname(host name of WebSphere MQ server) port(port number of WebSphere MQ server) transport(transport type) qmanager(name of queue manager)
Note: For example: def qcf(jms/ExpereQueueConnectionFactory) hostname(mn02ws2nelsonr) port(1414) channel(ExpereChannel) transport(CLIENT) qmanager(QM_mn02ws2nelsonr)
Enter the properties for the Queue to connect.
Note: Provide all parenthetical information ( ).
def q(JNDI name of Queue) queue(name of queue on WebSphere MQ) qmanager(name of Queue manager)
Note: For example: def q(jms/ExpereQueue) queue(ExpereQueue.Queue) qmanager(QM_mn02ws2nelsonr)